import './assets/main.scss'

import router from '@/router'
import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import { createPinia } from 'pinia'
import { createPersistedState } from 'pinia-persistedstate-plugin'


import App from './App.vue'

//app.vue使用的组件 都在这里引入 

const app=createApp(App);
const pinia=createPinia();
const persist=createPersistedState();
pinia.use(persist) //persist 是pinia的持久化组件 避免页面刷新丢失token 无法访问后端接口
app.use(pinia)
app.use(router)
app.use(ElementPlus)
app.mount('#app')
